
<%@ page import="cn.aloxc.stock.Boyistat" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code:'boyistat.label', default:'Boyistat')}" />
        <title>Create ${entityName}</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">${entityName} List</g:link></span>
        </div>
        <div class="body">
            <h1>Create ${entityName}</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${boyistatInstance}">
            <div class="errors">
                <g:renderErrors bean="${boyistatInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="code">
                                      <g:message code="boyistat.code.label" default="Code" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'code','errors')}">
                                    <input type="text" id="code" name="code" value="${fieldValue(bean:boyistatInstance,field:'code')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name">
                                      <g:message code="boyistat.name.label" default="Name" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'name','errors')}">
                                    <input type="text" id="name" name="name" value="${fieldValue(bean:boyistatInstance,field:'name')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="atype">
                                      <g:message code="boyistat.atype.label" default="Atype" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'atype','errors')}">
                                    <g:select id="atype" name="atype" from="${boyistatInstance.constraints.atype.inList}" value="${boyistatInstance.atype}" ></g:select>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="period">
                                      <g:message code="boyistat.period.label" default="Period" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'period','errors')}">
                                    <g:select id="period" name="period" from="${boyistatInstance.constraints.period.inList}" value="${boyistatInstance.period}" ></g:select>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="big">
                                      <g:message code="boyistat.big.label" default="Big" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'big','errors')}">
                                    <input type="text" id="big" name="big" value="${fieldValue(bean:boyistatInstance,field:'big')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="price">
                                      <g:message code="boyistat.price.label" default="Price" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'price','errors')}">
                                    <input type="text" id="price" name="price" value="${fieldValue(bean:boyistatInstance,field:'price')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="range">
                                      <g:message code="boyistat.range.label" default="Range" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'range','errors')}">
                                    <input type="text" id="range" name="range" value="${fieldValue(bean:boyistatInstance,field:'range')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="rank">
                                      <g:message code="boyistat.rank.label" default="Rank" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'rank','errors')}">
                                    <input type="text" id="rank" name="rank" value="${fieldValue(bean:boyistatInstance,field:'rank')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="scale">
                                      <g:message code="boyistat.scale.label" default="Scale" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'scale','errors')}">
                                    <input type="text" id="scale" name="scale" value="${fieldValue(bean:boyistatInstance,field:'scale')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="small">
                                      <g:message code="boyistat.small.label" default="Small" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'small','errors')}">
                                    <input type="text" id="small" name="small" value="${fieldValue(bean:boyistatInstance,field:'small')}" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="statdate">
                                      <g:message code="boyistat.statdate.label" default="Statdate" />
                                    </label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:boyistatInstance,field:'statdate','errors')}">
                                    <g:datePicker name="statdate" value="${boyistatInstance?.statdate}" precision="minute" ></g:datePicker>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Create" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
